<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    欢迎您，<span th:text="${user.usrName}" >usrName!!</span><!--<span>[[${user.usrName}]]</span>-->
    <p id="str"></p>
    <!--<input type="hidden" id="str" value="${str}" />-->
    <!-- 此时项目发布名称修改为/crm，不加上url表达式的话，直接跳转会找不到上下文报错 -->
    <a href="/toTest" th:href="@{/toTest}">点击</a>
    <form th:action="@{/add}" >

    </form>

    <a th:if="${1 == 1}" th:href="@{http://www.ktjiao.com/}">ktjiaoyu</a><br />

    <table border="1">
        <tr>
            <th>usrId</th>
            <th>usrName</th>
        </tr>
        <tr th:each="user,status : ${users}">
            <td th:text="${user.usrId}">1</td>
            <td th:text="${user.usrName}">科泰教育</td>
            <td th:text="${status.index}">0</td>
        </tr>


    </table>

<script th:inline="javascript">
    let str = [[${str}]];
    document.getElementById("str").innerText = str;
</script>
</body>
</html>